<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group" id="freight-template-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>{:__('一件代发商品')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-goods_id" data-rule="required"
                       data-source="wanlshop/integral/goodsList"
                       data-pagination="true"
                       data-page-size="1"
                       data-field="title"
                       class="form-control selectpage"
                       name="row[goods_id]"
                       type="text"
                       value=""
                       placeholder="点击选择商品">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="radio-inline">
                <input type="radio" name="integral_status" value="1" checked> {:__('正常')}
            </label>
            <label class="radio-inline">
                <input type="radio" name="integral_status" value="0"> {:__('隐藏')}
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>{:__('最大兑换比例')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-maximum_proportion"
                   data-rule="required"
                   class="form-control"
                   name="row[maximum_proportion]"
                   type="text"
                   value=""
                   placeholder="请输入数字"
                   pattern="^\d+(\.\d{1,2})?$"
            oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1').replace(/^(\d+\.\d{0,2}).*/,'$1')"
            title="请填写有效的数字，小数点后最多两位">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否支持金额补充积分 ')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="radio-inline">
                <input type="radio" name="row[is_repair]" value="0" checked> {:__('否')}
            </label>
            <label class="radio-inline">
                <input type="radio" name="row[is_repair]" value="1"> {:__('是')}
            </label>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
